package com.sdp.irrigation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 关于我们
 * </p>
 *
 * @author zsp
 * @since 2025-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("irrigation_about")
public class IrrigationAbout extends Model<IrrigationAbout> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 介绍
     */
    @TableField("about_info")
    private String aboutInfo;

    /**
     * 联系电话
     */
    @TableField("about_phone")
    private String aboutPhone;

    /**
     * 联系地址
     */
    @TableField("about_local")
    private String aboutLocal;

    /**
     * 公众号
     */
    @TableField("about_wechat")
    private String aboutWechat;

    /**
     * email
     */
    @TableField("about_email")
    private String aboutEmail;

    /**
     * QQ
     */
    @TableField("about_qq")
    private String aboutQq;

    /**
     * 记录生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 记录更新时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
